import React, { Component } from 'react'
import MenuGridView from './MenuGridView'
// import {
//     queryQryProjectInformation111Service,
//     queryQryProjectInformation222Service
// } from '../../services/query'

export default class MenuGridPage extends Component {
    constructor() {
        super()

        this.state = {
        }
    }

    componentWillMount() {
        // queryQryProjectInformation111Service().then(res => {
        //     console.log('WillMount>>>111', res)
        // })
        // queryQryProjectInformation222Service().then(res => {
        //     console.log('WillMount>>>222', res)
        // })
    }

    componentDidMount() {
        // console.log('DidMount>>>333')
    }

  // componentWillUpdate(nextProps, nextState) {
  //   console.log('WillUpdate>>>441', nextProps)
  //   console.log('WillUpdate>>>442', nextState)
  // }

  // componentDidUpdate(prevProps, prevState) {
  //   console.log('DidUpdate>>>551', prevProps)
  //   console.log('DidUpdate>>>552', prevState)
  // }

  // shouldComponentUpdate(nextProps, nextState) {
  //   return true
  // }

    clickGrid = (param) => {
        this.props.history.push(param.url)
    }

    render () {
        return <MenuGridView {...this.state} clickGrid={this.clickGrid} />

    }
}
